import Vue from 'vue'
import Vuex from 'vuex'

import dicts from './sys/dicts'
import parameters from './sys/parameters'
import users from './sys/users'
import menu from './sys/menu'
import tagsView from './common/tagsView'
import warehouse from './bus/warehouse'
import matrs from './bus/matrs'
import common from './common/common'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    appName: 'TestApplication',
    appVersion: '2.0',
    // 全局配置信息
    config: {
      reportTitle: 'scs',
      defaultRows: 15
    }
  },
  getters: {

  },
  mutations: {

  },
  actions: {

  },
  modules: {
    dicts,
    parameters,
    users,
    tagsView,
    warehouse,
    menu,
    matrs,
    common
  }
})
